package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Cpxs generated by hbm2java
 */
@Entity
@Table(name = "cpxs")
public class Cpxs implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private Long ny;
    private String gycpmc;
    private Long nscnl;
    private Long ncl;
    private String zxl;
    private BigDecimal xsze;
    private String hkjsfs;
    private String qymc;
    private BigDecimal qyxse;
    private Double qyzyl;
    private Boolean sfwd;
    private Short xh;

    public Cpxs()
    {
    }

    public Cpxs( Long id, String gycpmc )
    {
        this.id = id;
        this.gycpmc = gycpmc;
    }

    public Cpxs( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 Long ny,
                 String gycpmc,
                 Long nscnl,
                 Long ncl,
                 String zxl,
                 BigDecimal xsze,
                 String hkjsfs,
                 String qymc,
                 BigDecimal qyxse,
                 Double qyzyl,
                 Boolean sfwd,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.gycpmc = gycpmc;
        this.nscnl = nscnl;
        this.ncl = ncl;
        this.zxl = zxl;
        this.xsze = xsze;
        this.hkjsfs = hkjsfs;
        this.qymc = qymc;
        this.qyxse = qyxse;
        this.qyzyl = qyzyl;
        this.sfwd = sfwd;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny")
    public Long getNy()
    {
        return this.ny;
    }

    public void setNy( Long ny )
    {
        this.ny = ny;
    }

    @Column(name = "gycpmc", nullable = false, length = 50)
    public String getGycpmc()
    {
        return this.gycpmc;
    }

    public void setGycpmc( String gycpmc )
    {
        this.gycpmc = gycpmc;
    }

    @Column(name = "nscnl")
    public Long getNscnl()
    {
        return this.nscnl;
    }

    public void setNscnl( Long nscnl )
    {
        this.nscnl = nscnl;
    }

    @Column(name = "ncl")
    public Long getNcl()
    {
        return this.ncl;
    }

    public void setNcl( Long ncl )
    {
        this.ncl = ncl;
    }

    @Column(name = "zxl", length = 16)
    public String getZxl()
    {
        return this.zxl;
    }

    public void setZxl( String zxl )
    {
        this.zxl = zxl;
    }

    @Column(name = "xsze", precision = 18)
    public BigDecimal getXsze()
    {
        return this.xsze;
    }

    public void setXsze( BigDecimal xsze )
    {
        this.xsze = xsze;
    }

    @Column(name = "hkjsfs", length = 50)
    public String getHkjsfs()
    {
        return this.hkjsfs;
    }

    public void setHkjsfs( String hkjsfs )
    {
        this.hkjsfs = hkjsfs;
    }

    @Column(name = "qymc", length = 50)
    public String getQymc()
    {
        return this.qymc;
    }

    public void setQymc( String qymc )
    {
        this.qymc = qymc;
    }

    @Column(name = "qyxse", precision = 18)
    public BigDecimal getQyxse()
    {
        return this.qyxse;
    }

    public void setQyxse( BigDecimal qyxse )
    {
        this.qyxse = qyxse;
    }

    @Column(name = "qyzyl", precision = 53, scale = 0)
    public Double getQyzyl()
    {
        return this.qyzyl;
    }

    public void setQyzyl( Double qyzyl )
    {
        this.qyzyl = qyzyl;
    }

    @Column(name = "sfwd")
    public Boolean getSfwd()
    {
        return this.sfwd;
    }

    public void setSfwd( Boolean sfwd )
    {
        this.sfwd = sfwd;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
